/**
 * 
 */
package ar.pmt.gwt.client;

import ar.pmt.gwt.client.recurso.view.MainRecurso;

import com.google.gwt.core.client.EntryPoint;
import com.gwtext.client.core.RegionPosition;
import com.gwtext.client.widgets.Panel;
import com.gwtext.client.widgets.Viewport;
import com.gwtext.client.widgets.layout.BorderLayout;
import com.gwtext.client.widgets.layout.BorderLayoutData;
import com.gwtext.client.widgets.layout.FitLayout;


/**
 * @author guille
 *
 */
public class Recurso implements EntryPoint {

	public void onModuleLoad() {
		 new Viewport(layoutAux());  
	}

	
	public Panel layoutAux() {
        Panel panel = new Panel();  
        panel.setBorder(true);    
        panel.setPaddings(15);  
        panel.setLayout(new FitLayout());  
        Panel borderPanel = new Panel();  
        borderPanel.setLayout(new BorderLayout());  
  
        //#####-BODY-###### 
        Panel panelBody = (Panel) MainRecurso.getRecurso();
        borderPanel.add(panelBody, new BorderLayoutData(RegionPosition.CENTER));  
        
        panel.add(borderPanel);
        return panel;
	}
}
